#include <iostream>

class integer
{
public:
    explicit integer(int a)
    {
        printf("integer(int a)\n");
        num = a;
    }
    const int *GetInteger()
    {
        return &num;
    }
    void setnum(int a)const
    {

    }
    
private:
    int num;
};
int main()
{
    integer a(10);
    const int *b = a.GetInteger();
    std::cout << a.GetInteger() << std::endl;
    return 0;
}